Speed shortage in the ingenious.V12 web modules, that ar not caused by an instable internet or network connection, but by increasing usage, can be faced with load balancing.
For this purpose a second ingenious.V12 web server is installed in the network (separated licence is needed) and an upstream load balancer (Apache server) is set up.
The load balancer distributes all incoming requests to both web clients.
For the installation of the load balancer PHP; MySQL and Apache is needed. These components have to be started as services to guarantee a permanent availability, also e.g. in the case of a unplanned restart of the computers.
The following lines have to be added after the #LoadModule segment in the cofiguration file of the Apache server:
| Lastverteilung |
Copy Code |
|---|---|
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule headers_module modules/mod_headers.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule rewrite_module modules/mod_rewrite.so
# Weighted balancing: {IP WebClient 1}:{Port WebClient 1}
<VirtualHost *:{Port WebClient 1}>
Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
<Proxy balancer://mycluster>
BalancerMember http://{IP WebClient 1}:{Port WebClient 1} route=1
BalancerMember http://{IP WebClient 2}:{Port WebClient 2} route=2
ProxySet stickysession=ROUTEID
ProxySet lbmethod=bybusyness
</Proxy>
ProxyPass / balancer://mycluster/
ProxyPassReverse / balancer://mycluster/
</VirtualHost>
#Load Balancer Manager: {IP WebClient 2}:{Port WebClient 2}/bm
<Location *:{Port WebClient 2}/bm>
SetHandler balancer-manager
Order Deny,Allow
Allow from all
</Location> | |
Für erstmalige Anmeldungen werden die Benutzer gleichmäßig auf die Web Server verteilt.
With first login the users will be distributed equally to the web servers.

With all following logins the users will be redirected to this webserver where they first logged in, if a valid session ID exists.
